require "#{RAILS_ROOT}/app/classes/cat/rules/stopping_rule"

#* cat_stopper.rb
#* Copyright (C) 2010  Embian Inc.
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or 
#  (at your option) any later version.
#  
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#  
#  You should have received a copy of the GNU General Public License
#  along with This program.  If not, see <http://www.gnu.org/licenses/>.
#  
#* Defines "Stopping Rule" for CAT
#* Author: KyoungMo Yang(E-mail : mo@embian.com)
#* Modified: 2010-11-30
#* References: StoppingRule
class CATStopper
  include StoppingRule
  
  #* Functionailities
  # * Returns true if satisfies given Stopping Rule of CAT
  #* Parameters 
  # * N/A
  #* Return
  # * [result] : Returns true if satisfy Stopping Rule of CAT
  #* Note
  # * Override Rule#run
  def can_stop
    return satisfy_criterion
  end
end